package com.kuang.org.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.kuang.bascic.baseDomain.Domian;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Department extends Domian {
    private String sn;//编号
    private String dirPath;// 上层部门的层级路径
    private String name;//名称
    private Integer state;//装填
    private Long manager_id;// 管理员id
    private Employee manager;// 管理员
    private Department parent;// 上级部门
    private Long parent_id;// 上级部门 id
    // 级联下级部门
    @JsonInclude(JsonInclude.Include.NON_EMPTY) // 拦截级联空的住数组
    List<Department> children = new ArrayList<>();


}
